export const feildList = [
  {
    label: '项目范围',
    value: 'projectRange'
  },
  {
    label: '盲法类型',
    value: 'blindType'
  },
  {
    label: '本中心拟承担例数',
    value: 'assumeNumber'
  },
  {
    label: '本中心承担的专业',
    value: 'majorName'
  },
  {
    label: '本中心主要研究者',
    value: 'piName'
  },
  {
    label: '本中心是否为组长单位',
    value: 'isGroupLeaderOrg'
  },
  {
    label: '合同额',
    value: 'contractAmount'
  }
]
export const feildOptions = {
  projectRange: {
    prefix: ['='],
    message: '输入 = 试试？',
    options: [
      {
        label: '${projectRange == "单中心"}',
        value: '${projectRange == "单中心"}'
      },
      {
        label: '${projectRange != "单中心"}',
        value: '${projectRange != "单中心"}'
      }
    ]
  },
  blindType: {
    prefix: ['='],
    message: '输入 = 试试？',
    options: [
      {
        label: '${blindType == "非盲"}',
        value: '${blindType == "非盲"}'
      },
      {
        label: '${blindType != "非盲"}',
        value: '${blindType != "非盲"}'
      }
    ]
  },
  assumeNumber: {
    prefix: ['=', '<', '>'],
    message: '输入 = 或 < 或 > 试试？',
    options: [
      {
        label: '${assumeNumber == 10}',
        value: '${assumeNumber == 10}'
      },
      {
        label: '${assumeNumber!= 10}',
        value: '${assumeNumber!= 10}'
      },
      {
        label: '${assumeNumber > 10}',
        value: '${assumeNumber > 10}'
      },
      {
        label: '${assumeNumber >= 10}',
        value: '${assumeNumber >= 10}'
      },
      {
        label: '${assumeNumber < 10}',
        value: '${assumeNumber < 10}'
      },
      {
        label: '${assumeNumber <= 10}',
        value: '${assumeNumber <= 10}'
      }
    ]
  },
  majorName: {
    prefix: ['c'],
    message: '输入 c 试试？',
    options: [
      {
        label: '${majorName.contains("***")}',
        value: '${majorName.contains("***")}'
      },
      {
        label: '${majorName.contains("***") || majorName.contains("**")}',
        value: '${majorName.contains("***") || majorName.contains("**")}'
      }
    ]
  },
  piName: {
    prefix: ['c'],
    message: '输入 c 试试？',
    options: [
      {
        label: '${piName.contains("***")}',
        value: '${piName.contains("***")}'
      },
      {
        label: '${piName.contains("***") || piName.contains("**")}',
        value: '${piName.contains("***") || piName.contains("**")}'
      }
    ]
  },
  isGroupLeaderOrg: {
    prefix: ['='],
    message: '输入 = 试试？',
    options: [
      {
        label: '${isGroupLeaderOrg == "是"}',
        value: '${isGroupLeaderOrg == "是"}'
      },
      {
        label: '${isGroupLeaderOrg!= "否"}',
        value: '${isGroupLeaderOrg!= "否"}'
      }
    ]
  },
  contractAmount: {
    prefix: ['=', '<', '>'],
    message: '输入 = 或 < 或 > 试试？',
    options: [
      {
        label: '${contractAmount == 10}',
        value: '${contractAmount == 10}'
      },
      {
        label: '${contractAmount!= 10}',
        value: '${contractAmount!= 10}'
      },
      {
        label: '${contractAmount > 10}',
        value: '${contractAmount > 10}'
      },
      {
        label: '${contractAmount >= 10}',
        value: '${contractAmount >= 10}'
      },
      {
        label: '${contractAmount < 10}',
        value: '${contractAmount < 10}'
      },
      {
        label: '${contractAmount <= 10}',
        value: '${contractAmount <= 10}'
      }
    ]
  }
}
